<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" %>
<%@ taglib uri ="http://java.sun.com/jsp/jstl/core" prefix ="c"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>查询班级</title>
		<link  rel="stylesheet" href="./css/index.css" type="text/css" />
		<style>
		   .main div{
				width: 300px;
			/* 	border: 1px solid gray;*/
				border-radius: 5px; 
				padding: 5px;
				margin: 3px;
				
			}
			input,textarea{
				width: 170px;
				line-height: 25px;
			}
			label{
				width: 120px;
				vertical-align: top;
				line-height: 25px;
			}
			.main div:last-child{
				text-align: right;
			}
			.main div:last-child input{
				width: 80px;
			}
			.menu,.main{
				float: left;
				padding: 10px;
			}
			.menu{
				width: 200px;
				border-right:3px solid gray ;
			}
			.menu li{
				margin: 5px;
				padding: 3px;
			}
			.main{
				margin-left: 100px;
			}
			caption{
				 font-size: 26px;
				}
			table{
				border-collapse: collapse;
				 text-align: center;
			}
			
			td {
				border: 1px solid gray;
				width: 100px;
				padding: 3px;
			}
			
			tr:nth-child(2n){
				background-color:lightgray
			}
			tr:first-child{
				height: 40px;
			    line-height: 30px;
				font-weight: bold;
				font-size: 18px;
			}
			tr a{
				color: black;
				text-decoration: none;
				border: 1px solid white;
				padding: 3px;
				border-radius: 2px;
				text-align: center;
				margin-left:4px ;
			}
			tr td:last-child{
				width: 200px;
			}
		</style>
	</head>
	<body>
		<h1>华清远见班级管理系统
		<h4>${admin }，welcome!</h4>
		</h1>
		<hr>
		<div>
			<div class="menu">
				<h3>班级管理</h3>
				<ul>
					<li><a href="toAddClass.cs">添加班级</a></li>
					<li><a href="listClass.cs">查询班级</a></li>
				</ul>
				<h3>学生管理</h3>
				<ul>
					<li><a href="toAddStu.cs">添加学生</a></li>
					<li class="active"><a href="listStu.cs">查询学生</a></li>
				</ul>
				<h3>退出系统</h3>
				<ul>
					<li><a href="#">退出系统</a></li>
				</ul>
			</div>
			<div class="main">
				<table>
							 <caption>学生列表显示</caption>
							 <tr>
								 <td>学生编号</td>
								 <td>学生名字</td>
								 <td>学生性别</td>
								 <td>学生年龄</td>
								 <td>就业日期</td>
								 <td>就业薪水</td>
								 <td>就业公司</td>
								 <td>操作</td>
							 </tr>
			
			 <c:forEach var="stu" items="${hss }">
			 	<tr>
			 		<td>${stu.stuCode }</td>
			 		<td>${stu.stuName }</td>
			 		<td>${stu.stuSex }</td>
			 		<td>${stu.stuAge }</td>
			 		<td>${stu.stuBirth }</td>
			 		<td>${stu.stuMoney }</td>
			 		<td>${stu.stuCompany }</td>
			 		<td>
						<a href="delStu.cs?stuCode=${stu.stuCode }">删除</a>
						<a href="toUpdateStu.cs?${stu.toString() }">更新</a>
						
					</td>
			 </tr>
			 </c:forEach>
				</table>
			</div>
		</div>
		
	</body>
</html>
